import '../../scss/basicInfo.scss'
import React from 'react'
import ReactDom from 'react-dom'
import {Router, Route, hashHistory, Link, browserHistory, IndexRoute} from 'react-router'

export default React.createClass({
    jump(name) {
        ReactDom.unmountComponentAtNode(document.getElementById('panelPop'))
        $('#panelPop').remove()
        location.href = name
    },
    render() {
        return <div id='routePanel' className='flex wrap'>
            <button onClick={this.jump.bind(this, "#/")}>首页</button>
            <button onClick={this.jump.bind(this, "#/login")}>用户登录</button>
            <button onClick={this.jump.bind(this, "#/register")}>用户注册</button>
            <button onClick={this.jump.bind(this, "#/playerList")}>角色选择</button>
            <button onClick={this.jump.bind(this, "#/city")}>城市</button>
            <button onClick={this.jump.bind(this, "#/field")}>野外地图</button>
            <button onClick={this.jump.bind(this, "#/capital")}>主城</button>
        </div>
    }
})
